xen/libxc: set CPUID topology leaf as unsupported for PV guests
authorDavid Vrabel <david.vrabel@citrix.com>
Sat, 16 Jul 2011 08:05:45 +0000 (09:05 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Sat, 16 Jul 2011 08:05:45 +0000 (09:05 +0100)
commit508424df0926c4709c14b17c1d40f103f5a43546
treeacbca12109c6459bf14599c76908df3fb5cb5f95
parent2e8644e1d90b08330bc72661f11600ba9ef980e4
xen/libxc: set CPUID topology leaf as unsupported for PV guests

The result of a CPUID Extended Topology Enumeration leaf for PV guests
is invalid as the level in ECX is ignored.  This can cause some guests
to loop endlessly when trying to enumerate the topology.

Since the physical topology isn't useful to PV guests set the topology
leaf as unsupported.

Guests affected include Linux kernels prior 2.6.32 where a workaround
was applied ("xen: mask extended topology info in cpu",
82d6469916c6fcfa345636a49004c9d1753905d1).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
tools/libxc/xc_cpuid_x86.c
xen/arch/x86/traps.c